package com.rong.structural.compositeModel;

public class Department  extends OrganizationComponent
{
    // 构造器
    public Department(String name, String desc)
    {
        super(name, desc);
    }

    // add和remove就不用写了因为他是叶子节点
    @Override
    protected void print() {
        System.out.println(getName());

    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDes() {
        return super.getDes();
    }
}
